<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<title>修改房屋他项权利摘要信息</title>
<link th:replace="common/header"/>
<script type="text/javascript" th:src="@{/js/My97DatePicker/WdatePicker.js}"></script>
</head>
<body class="no-skin">
	<div th:replace="common/top"/>
	<div class="main-container ace-save-state" id="main-container">
		<div th:replace="common/menu"/>
		<div class="main-content">
			<div class="main-content-inner">
				<div th:replace="common/title"/>
				<div class="page-content">
					<div th:replace="common/skin"/>
					<div class="row">
						<div class="col-xs-12">
							<!-- PAGE CONTENT BEGINS -->
							<form class="form-horizontal" action="edit.do" name="form" th:action="@{/otherRightDigest/edit}" th:method="post" th:object="${otherRightDigest}">
								<input type="hidden" id="id" name="id" th:value="*{id}"/>
								<input type="hidden" id="ownerId" name="ownerId" th:value="*{ownerId}"/>
								<input type="hidden" id="fromOwnerId" name="fromOwnerId" th:value="*{fromOwnerId}"/>
								<h3 class="header smaller lighter blue"><i class="fa fa-plus" aria-hidden="true"></i>修改房屋他项权利摘要信息</h3>
								<div class="row-fluid">
								<!--PAGE CONTENT BEGINS HERE-->
									<div class="span6">
										<div class="control-group">
											<label class="control-label" for="righter">权利人:<font style="color:red">*</font></label>
											<div class="controls">
												<input name="righter" id="righter" class="input_fix" placeholder="权利人" th:value="*{righter}" maxlength="50"/>
											</div>
										</div>
									</div>
									<div class="span6">
										<div class="control-group">
											<label class="control-label" for="type">权利种类:<font style="color:red">*</font></label>
											<div class="controls">
												<select th:field="*{type}" id="type" name="type" class="input_fix" th:value="*{type}">
													<option value="">--请选择--</option>
													<option th:each="type : ${T(xyz.ibenben.zhongdian.system.entity.enums.RightTypeEnum).values()}" th:value="${type}" th:text="${type.text}"></option>
												</select>
											</div>
										</div>
									</div>
								</div>
								<div class="row-fluid">
									<div class="span6">
										<font style="color:red"><p th:if="${#fields.hasErrors('righter')}" th:errors="*{righter}" >Name Error</p>&nbsp;</font>
									</div>
									<div class="span6">
										<font style="color:red"><p th:if="${#fields.hasErrors('type')}" th:errors="*{type}">Name Error</p>&nbsp;</font>
									</div>
								</div>
								<div class="row-fluid">
								<!--PAGE CONTENT BEGINS HERE-->
									<div class="span6">
										<div class="control-group">
											<label class="control-label" for="ranges">权利范围:<font style="color:red">*</font></label>
											<div class="controls">
												<input name="ranges" id="ranges" class="input_fix" placeholder="权利范围" th:value="*{ranges}" maxlength="50"/>
											</div>
										</div>
									</div>
									<div class="span6">
										<div class="control-group">
											<label class="control-label" for="price">权利价值(元):<font style="color:red">*</font></label>
											<div class="controls">
												<input name="price" id="price" class="input_fix" placeholder="权利价值(元)" th:value="*{price}" maxlength="50"/>
											</div>
										</div>
									</div>
								</div>
								<div class="row-fluid">
									<div class="span6">
										<font style="color:red"><p th:if="${#fields.hasErrors('ranges')}" th:errors="*{ranges}" >Name Error</p>&nbsp;</font>
									</div>
									<div class="span6">
										<font style="color:red"><p th:if="${#fields.hasErrors('price')}" th:errors="*{price}">Name Error</p>&nbsp;</font>
									</div>
								</div>
								<div class="row-fluid">
								<!--PAGE CONTENT BEGINS HERE-->
									<div class="span4">
										<div class="control-group">
											<label class="control-label" for="setDate">设定日期:<font style="color:red">*</font></label>
											<div class="controls">
												<input name="setDate" id="setDate" class="input_fix7" placeholder="设定日期" th:value="*{setDate} == null ? '' : *{#dates.format(setDate, 'yyyy-MM-dd')}" />
												<img onclick="WdatePicker({el:'setDate',dateFmt:'yyyy-MM-dd'})" 
												style="width:16px;height:22px" align="middle" th:src="@{/js/My97DatePicker/skin/datePicker.gif}"/>
											</div>
										</div>
									</div>
									<div class="span4">
										<div class="control-group">
											<label class="control-label" for="dateLimit">约定期限:<font style="color:red">*</font></label>
											<div class="controls">
												<input name="dateLimit" id="dateLimit" class="input_fix7" placeholder="约定期限" th:value="*{dateLimit} == null ? '' : *{#dates.format(dateLimit, 'yyyy-MM-dd')}" />
												<img onclick="WdatePicker({el:'dateLimit',dateFmt:'yyyy-MM-dd'})" 
												style="width:16px;height:22px" align="middle" th:src="@{/js/My97DatePicker/skin/datePicker.gif}"/>
											</div>
										</div>
									</div>
									<div class="span4">
										<div class="control-group">
											<label class="control-label" for="logoutDate">注销日期:<font style="color:red">*</font></label>
											<div class="controls">
												<input name="logoutDate" id="logoutDate" class="input_fix7" placeholder="注销日期" th:value="*{logoutDate} == null ? '' : *{#dates.format(logoutDate, 'yyyy-MM-dd')}" />
												<img onclick="WdatePicker({el:'logoutDate',dateFmt:'yyyy-MM-dd'})" 
												style="width:16px;height:22px" align="middle" th:src="@{/js/My97DatePicker/skin/datePicker.gif}"/>
											</div>
										</div>
									</div>
								</div>
								<div class="row-fluid">
									<div class="span4">
										<font style="color:red"><p th:if="${#fields.hasErrors('setDate')}" th:errors="*{setDate}">Name Error</p>&nbsp;</font>
									</div>
									<div class="span4">
										<font style="color:red"><p th:if="${#fields.hasErrors('dateLimit')}" th:errors="*{dateLimit}">Name Error</p>&nbsp;</font>
									</div>
									<div class="span4">
										<font style="color:red"><p th:if="${#fields.hasErrors('logoutDate')}" th:errors="*{logoutDate}">Name Error</p>&nbsp;</font>
									</div>
								</div>
								<div class="row-fluid">
									<div class="text-center span12">
										<button shiro:hasPermission="/otherRightDigest/edit" class="btn btn-primary" type="submit"><i class="fa fa-floppy-o" aria-hidden="true"></i>更新</button>
										<button shiro:hasPermission="/otherRightDigest/edit" class="btn btn-danger" type="reset"><i class="fa fa-times" aria-hidden="true"></i>取消</button>
										<a shiro:hasPermission="/otherRightDigest/getall" class="btn" href="getall" th:href="@{/otherRightDigest/getall}"><i class="fa fa-reply" aria-hidden="true"></i>返回</a>
									</div>
								</div>
							</form>
							<!-- PAGE CONTENT ENDS -->
						</div><!-- /.col -->
					</div><!-- /.row -->
				</div><!-- /.page-content -->
			</div>
		</div><!-- /.main-content -->
		<div th:replace="common/footer"/>
	</div><!-- /.main-container -->
	<div th:replace="common/buttom"/>

	<script type="text/javascript">
		$("form").submit(function(){  
			$(":submit",this).attr("disabled","disabled");  
		}); 
	</script>
</body>
</html>
